package com.abl.core.domain.db;

import com.abl.core.mybatis.config.FieldInsert;
import com.abl.core.mybatis.config.FieldSet;
import com.abl.core.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色表
 */
@Data
@Table(value = "sys_role", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class SysRole extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private int sort;
    //    	角色名称
    private String name;
    //    	是否已禁用，0=正常，1=已禁用，默认为0
    private String isDisable;
    //    	备注
    private String remark;
    //    	资源集合；字符串数组
    private String res;
    //      排除资源；逗号分隔
    private String resExclude;

    //
    @Column(ignore = true)
    private Object menuIds;
}
